home *** CD-ROM | disk | FTP | other *** search
/ The PC-SIG Library 9 / The PC-SIG Library on CD ROM - Ninth Edition.iso / 1601_700 / DISK1665 / DISK1665.ZIP / LANGTC.KED < prev    next >
Text File  |  1980-01-01  |  48KB  |  1,076 lines

  1. .Notice  - Last Update:1988/09/26 17:30
  2. Importance Notice: The information contained in this option are for quick
  3.                    reference only. The accuracy of it should be based on your
  4.                    language reference manual.
  5. Set Up By        : Kuang H. Tseng
  6. Language         : Turbo C(R) 2.0 by Borland
  7. . 1.   Language Elements
  8.     Character Sets
  9.        - Uppercase letters from A to Z, lowercase leter from a to z
  10.        - Decimal digits from 0 to 9
  11.        - Special characters '_' and '$'
  12.     Data Types - (refer to separate key line for more)
  13.     Identifiers - (refer to separate key line for more)
  14.     Keywords - (refer to separate key line for more)
  15.     Constants - (refer to separate key line for more)
  16.     Comments - characters between '/*'' and '*/'
  17.     Statements - (refer to separate key line for more)
  18.     Functions - (refer to separate key line for more)
  19.     Operators - (refer to separate key line for more)
  20.     Declarations
  21.          - Function Declarations
  22.          - Variable Declarations
  23.          - Type Declarations
  24.     Program Line
  25.     Preprocessor Directives - (refer to separate key line for more)
  26.     Compiler Directives - (refer to separate key line for more)
  27. . 2.   Data types
  28.          char                1 byte         -128 to 127
  29.          int                 2              -32768 to 32767
  30.          short               2              -32768 to 32768
  31.          long                4              -2147483648 to 2147483647
  32.          unsigned char       1              0 to 255
  33.          unsigned            2              0 to 65535
  34.          unsigned short      2              0 to 65535
  35.          unsigned long       4              0 to 4294967296
  36.          enum                2              0 to 65535
  37.          float               4              3.4E-38 to 3.4E+38
  38.          double              8              1.7E-308 to 1.7E+308
  39.          long double         8              1.7E-308 to 1.7E+308 
  40. . 3.1  Identifiers
  41.    - Use to name the variables, types, functions and labels
  42.    - Consists of letters,digits,underscores but begins with letters or underscor
  43.    - First 32 characters are significant
  44.    - Case sensitive
  45. . 3.2  Keywords
  46.    asm       auto       break    case      edecl   char      const   continue
  47.    default    do        double   else      enum    extern    far     float
  48.    for        goto      huge     if        int     interrupt long    near
  49.    pascal     register  return   short     signed  sizeof    static  struct
  50.    switch     typedef   union    unsigned  void    volatile  while
  51.    _cs       _ds        _es       _ss      _AH     _AL       _AX     _BH
  52.    _BL       _BX        _CH       _CL      _CX     _DH       _DL     _DX
  53.    _BP       _DI        _SI       _SP
  54. . 3.3  Constants
  55.    Integer Constants : 
  56.        - Decimal Constants
  57.        - Octal Constants - digits with leading 0O
  58.        - Hexadecimal Constants - digits with leading 0x or 0X
  59.    Floating-point Constants : including an integer portion, a fraction portion,
  60.                               and an exponent. Have type double
  61.    Character Constants : a character enclosed within single quotation marks ' '
  62.    String Constants : a sequence of characters enclosed within " "
  63. . 3.4  Global Variables
  64.    extern int _argc; /* count of command-line arguments */
  65.    extern char *_argv; /* array of pointers to command-line arguments */
  66.    extern int daylight; /* switch for daylight saving time or standard time */
  67.    extern int directvideo; /* flag to control console output */
  68.    extern int _8087; /* coprocessor chip flag */
  69.    extern char *environ[]; /* array of pointers to DOS environment strings */
  70.    extern int errno; /* enable perror to print error messages */
  71.    extern int _doserrno; /* enable perror to print error messages */
  72.    extern char *sys_errlist; /* enable perror to print error messages */
  73.    extern int sys_nerr; /* enable perror to print error messages */
  74.    extern int _fmode; /* determine default file-translation mode */
  75.    extern unsigned _heaplen; /* length of near heap */
  76.    extern unsigned char _osmajor/_osminor; /* DOS major/minor version no.*/ 
  77.    extern unsigned int _psp; /* segment address of PSP */
  78.    extern unsigned _stklen; /* size of stack */
  79.    extern long timezone; /* difference in sec between local time and GMT */
  80.    extern char *tzname[2]; /* array of pointers to time zone names /
  81.    extern unsigned int _version; /* DOS version number */
  82. . 4.   Operators and the Precedence
  83.     []        array                                      1
  84.     ()        function                  procedence level 1     left to right
  85.     . or ->   member selection                           1
  86.     !         logical not                                2     right to left
  87.     ~         bitwise complement                         2
  88.     ++        increment                                  2
  89.     --        decrement                                  2
  90.     -         arithmetic negation                        2
  91.     (type)    type case                                  2
  92.     *         indirection                                2
  93.     &         address of                                 2
  94.     SIZEOF    size in bytes                              2
  95.     *         multiplication                             3     left to right
  96.     /         division                                   3
  97.     %         modulus                                    3
  98.     +         addition                                   4     left to right
  99.     -         subtraction                                4
  100.     <<        shift left                                 5     left to right
  101.     >>        shift right                                5
  102.     <         less than                                  6     left to right
  103.     <=        less than or equal to                      6
  104.     >         greater than                               6
  105.     >=        greater than or equal to                   6
  106.     ==        equal to                                   7     left to right
  107.     !=        no equal to                                7
  108.     &         bitwise AND                                8     left to right
  109.     ^         bitwise exclusive XOR                      9     left to right
  110.     :         bitwise inclusive OR                      10     left to right
  111.     &&        logical AND                               11     left to right
  112.     ||        logical OR                                12     left to right
  113.     exp1?exp2:exp3 condition                            13     right to left
  114.     =         simple assigment                          14     right to left
  115.     +=        addition assignment                       14
  116.     -=        subtraction assignment                    14
  117.     *=        multiplication assignment                 14
  118.     /=        division assignment                       14
  119.     %=        remainder assignment                      14
  120.     >>=       right shift assignment                    14
  121.     <<=       left shift assignment                     14
  122.     &=        bitwise AND assignment                    14
  123.     :=        bitwise inclusive OR assignment           14
  124.     ^=        bitwise exclusive  OR assignment          14
  125.     ,         multiple expression                       15
  126. . 5.1  List of Statements
  127.     asm
  128.     break;
  129.     continue;
  130.     do...while(expression);
  131.     for ([init-exp];[cond-exp];[loop-exp])
  132.     goto label-name;
  133.     if (exp)...else (exp)
  134.     return [exp];
  135.     switch (exp) {[declaration]...[case const-exp:]...[default:...]}
  136.     while (exp) ...statement
  137. . 5.2  List of Include Files
  138.     alloc.h      -declaration for memory management functions
  139.     assert.h     -define the assert debugging macro
  140.     bios.h       -decalre functions used in calling ROM BIOS routines
  141.     conio.h      -declare functions used in calling DOS console I/O routines
  142.     ctype.h      -for character classification and conversion macros
  143.     dir.h        -structures/macros/functions for working with directory
  144.     dos.h        -constants/declaration for DOS calls
  145.     errno.h      -constant mnemonics for error codes
  146.     fcntl.h      -constants for open function
  147.     float.h      -parameters for floating-point functions
  148.     graphics.h   -prototypes for graphics functions
  149.     io.h         -structures/declarations for lower-level I/O functions
  150.     limits.h     -environment parameters,compile-time limitations
  151.     math.h       -prototypes for math functins and structures for matherr funct.
  152.     mem.h        -declarations for memory-manipulation functions
  153.     process.h    -structures/declarations for spawn/exec functions
  154.     setjmp.h     -declarations for longjmp/setjmp routines
  155.     share.h      -parameters/functions for file-sharing functions
  156.     signal.h     -constants/declarations for signal/raise functions
  157.     stdargs.h    -macros for functions to read a variable number of arguments
  158.     stddef.h     -definitions of commonly used variables/types/macros
  159.     stdio.h      -constants/types/macros/declarations for stream I/O
  160.     stdlib.h     -declarations for conversion/search/sort/misc functions
  161.     string.h     -declarations for string/memory-manipulation functions
  162.     sys\stat.h   -symbolic constants for opening/creating files
  163.     sys\timeb.h  -declarations/structure of timeb for ftime function
  164.     sys\types.h  -declaration of type time_t for time functions
  165.     time.h       -structures/types/declarations for time-conversion functions
  166.     values.h     -constants of machine dependencies for UNIX V compatibility
  167. . 5.3  List of Functions by Group/Class with header file
  168.  Charater Classification
  169.       isalnum (ctype.h)        isalpha (ctype.h)        isascii  (ctype.h)
  170.       iscntrl (ctype.h)        isdigit (ctype.h)        isgraph  (ctype.h)
  171.       islower (ctype.h)        isprint (ctype.h)        ispunct  (ctype.h)
  172.       isspace (ctype.h)        isupper (ctype.h)        isxdigit (ctype.h)
  173.  Data Type Conversion
  174.       atof   (stdlib.h)        atoi   (stdlib.h)        atol   (stdlib.h)
  175.       ecvt   (stdlib.h)        fcvt   (stdlib.h)        gcvt   (stdlib.h)
  176.       itoa   (stdlib.h)        ltoa   (stdlib.h)        strtod (stdlib.h)
  177.       strtol (stdlib.h)        stroul (stdlib.h)        ultoa  (stdlib.h)
  178.  Character Conversion
  179.       toascii (ctype.h)        tolower (stdlib.h)       _tolower (stdlib.h)
  180.       toupper (stdlib.h)       _toupper (stdlib.h)
  181.  Directory Control
  182.       chdir   (dir.h)          findfirst (dir.h)        findnext   (dir.h)
  183.       fnmerge (dir.h)          fnsplit   (dir.h)        getcurdir  (dir.h)
  184.       getcwd  (dir.h)          getdisk   (dir.h)        mkdir      (dir.h)
  185.       mktemp  (dir.h)          rmdir     (dir.h)        searchpath (dir.h)
  186.       setdisk (dir.h)
  187.  Diagnostic
  188.       assert  (assert.h)       matherr (math.h)         perror (errno.h)
  189.  Text Window Output Attribute Control
  190.       textcolor (conio.h)      textbackground (conio.h) textattr  (conio.h)
  191.       highvideo (conio.h)      lowvideo (conio.h)       normvideo (conio.h)
  192.  Text Window State Query
  193.       gettextinfo (conio.h)    wherex (conio.h)         wherey (conio.h)
  194.  Graphics - System Control
  195.       closegraph      (graphics.h)         detectgraph       (graphics.h)
  196.       phdefaults      (graphics.h)         _graphfreemem     (graphics.h)
  197.       _graphgetmem    (graphics.h)         getmoderange      (graphics.h)
  198.       initgraph       (graphics.h)         installuserdriver (graphics.h)
  199.       installuserfont (graphics.h)         registerbgidriver (graphics.h)
  200.       restorecrtmode  (graphics.h)         setgraphbufsize   (graphics.h)
  201.       setgraphmode    (graphics.h)
  202.  Graphics - Drawing
  203.       arc             (graphics.h)         circle         (graphics.h)
  204.       drawpoly        (graphics.h)         ellipse        (graphics.h)
  205.       getarccoords    (graphics.h)         getspectratio  (graphics.h)
  206.       getlinesettings (graphics.h)         line           (graphics.h)
  207.       linerel         (graphics.h)         lineto         (graphics.h)
  208.       moveto          (graphics.h)         moverel        (graphics.h)
  209.       rectangle       (graphics.h)         setaspectratio (graphics.h)
  210.       setlinestyle    (graphics.h)
  211.  Graphics - Filling
  212.       bar             (graphics.h)         bar3d          (graphics.h)
  213.       fillellipse     (graphics.h)         fillpoly       (graphics.h)
  214.       folldfill       (graphics.h)         getfillpattern (graphics.h)
  215.       getfillsettings (graphics.h)         pieslice       (graphics.h)
  216.       sector          (graphics.h)         setfillpatern  (graphics.h)
  217.       setfillstyle    (graphics.h)
  218.  Graphics - Screen Manipulation
  219.       cleardevice     (graphics.h)         setactivepage  (graphics.h)
  220.       setvisualpage   (graphics.h)
  221.  Graphics - Viewport Manipulation
  222.       clearviewport   (graphics.h)         getviewsettings(graphics.h)
  223.       setviewport     (graphics.h)
  224.  Graphics - Image Manipulation
  225.       getimage        (graphics.h)         imagesize      (graphics.h)
  226.       putimage        (graphics.h)
  227.  Graphics - Pixel Manipulation
  228.       getpixel        (graphics.h)         putpixel       (graphics.h)
  229.  Graphics - Text Output
  230.       gettextsettings (graphics.h)         outtext         (graphics.h)
  231.       outtextxy       (graphics.h)         registerbgifont (graphics.h)
  232.       setttextjustify (graphics.h)         settextstyle    (graphics.h)
  233.       setusercharsize (graphics.h)         textheight      (graphics.h)
  234.       textwidth       (graphics.h)
  235.  Graphics - Color Control
  236.       getbkcolor        (graphics.h)       getcolor       (graphics.h)
  237.       getdefaultpalette (graphics.h)       getmaxcolor    (graphics.h)
  238.       getpalette        (graphics.h)       getpalettesize (graphics.h)
  239.       setallpalette     (graphics.h)       setbkcolor     (graphics.h)
  240.       setcolor          (graphics.h)       setpalette     (graphics.h)
  241.  Buffer Manipulation
  242.       memccpy  (mem.h, string.h)           memchr   (mem.h, string.h)
  243.       memcmp   (mem.h, string.h)           memcpy   (mem.h, string.h)
  244.       memicmp  (mem.h, string.h)           memmove  (mem.h, string.h)
  245.       memset   (mem.h, string.h)           movedata (mem.h, string.h)
  246.       memmem   (mem.h, string.h)
  247.  I/O File Handling
  248.       access     (io.h)         chmod  (io.h)          chsize (io.h)
  249.       filelength (io.h)         fstat  (sys\stat.h)    isatty (io.h)
  250.       lock       (io.h)         remove (stdio.h)       rename (stdio.h)
  251.       setmode    (io.h)         stat   (sys\stat.h)    unlock (io.h)
  252.  I/O (Console)
  253.       cget       (conio.h)      cprintf (conio.h)      cputs   (conio.h)
  254.       cscanf     (conio.h)      getch   (conio.h)      getche  (conio.h)
  255.       kbhit      (conio.h)      putch   (conio.h)      ungetch (conio.h)
  256.  I/O (Low Level)
  257.       _close     (io.h)         close   (io.h)         _creat  (io.h)
  258.       creat      (io.h)         dup     (io.h)         dup2    (io.h)
  259.       eof        (io.h)         lseek   (io.h)         open    (io.h)
  260.       read       (io.h)         sopen   (io.h)         tell    (io.h)
  261.       _write     (io.h)         write   (io.h)
  262.  I/O (Stream)
  263.       clearerr (stdio.h)        fclose   (stdio.h)     fcloseall (stdio.h)
  264.       fdopen   (stdio.h)        feof     (stdio.h)     ferror    (stdio.h)
  265.       fflush   (stdio.h)        fgetc    (stdio.h)     fgetchar  (stdio.h)
  266.       fgetpos  (stdio.h)        fgets    (stdio.h)     fileno    (stdio.h)
  267.       flushall (stdio.h)        fopen    (stdio.h)     fprintf   (stdio.h)
  268.       fputc    (stdio.h)        fputchar (stdio.h)     fputs     (stdio.h)
  269.       fread    (stdio.h)        freopen  (stdio.h)     fscanf    (stdio.h)
  270.       fseek    (stdio.h)        fsetpos  (stdio.h)     ftell     (stdio.h)
  271.       fwrite   (stdio.h)        getc     (stdio.h)     getchar   (stdio.h)
  272.       gets     (stdio.h)        getw     (stdio.h)     printf    (stdio.h)
  273.       putc     (stdio.h)        putchar  (stdio.h)     puts      (stdio.h)
  274.       putw     (stdio.h)        rewind   (stdio.h)     scanf     (stdio.h)
  275.       setbuf   (stdio.h)        setvbuf  (stdio.h)     sprintf   (stdio.h)
  276.       sscanf   (stdio.h)        tmpnam   (stdio.h)     ungetc    (stdio.h)
  277.       vprintf  (stdio.h)        vsprintf (stdio.h)
  278.  Math
  279.       acos     (math.h)         asin       (math.h)    atan     (math.h)
  280.       atan2    (math.h)         cabs       (math.h)    ceil     (math.h)
  281.       _clear87 (float.h)        _control87 (float.h)   cos      (math.h)
  282.       cosh     (math.h)         exp        (math.h)    fabs     (math.h)
  283.       floor    (math.h)         fmod       (math.h)    _fpreset (float.h)
  284.       frexp    (math.h)         hypot      (math.h)    ldexp    (math.h)
  285.       log      (math.h)         log10      (math.h)    _matherr (math.h)
  286.       matherr  (math.h)         modf       (math.h)    pow      (math.h)
  287.       pow10    (math.h)         sin        (math.h)    sinh     (math.h)
  288.       sqrt     (math.h)         _status87  (float.h)   tan      (math.h)
  289.       tanh     (math.h)
  290.  Memory Allocation
  291.       allocmem (dos.h)            brk       (alloc.h)      calloc      (alloc.h)
  292.       coreleft (alloc.h,stdlib.h) farcalloc (alloc.h)      farcoreleft (alloc.h)
  293.       farfree  (alloc.h)          farmalloc (alloc.h)      farrealloc  (alloc.h)
  294.       free     (alloc.h,stdlib.h) malloc    (alloc.h,stdlib.h) 
  295.       realloc  (alloc.h,stdlib.h) sbrk      (alloc.h)      setblock    (dos.h)
  296.  Process Control
  297.       abort   (process.h)       execl    (process.h)   execle   (process.h)
  298.       execlp  (process.h)       execlpe  (process.h)   execv    (process.h)
  299.       execve  (process.h)       execvp   (process.h)   execvpe  (process.h)
  300.       exit    (process.h)       _exit    (process.h)   raise    (signal.h)
  301.       signal  (process.h)       spawnl   (process.h)   spawnle  (process.h)
  302.       spawnlp (process.h)       spawnlpe (process.h)   spawnv   (process.h)
  303.       spawnve (process.h)       spawnvp  (process.h)   swawnvpe (process.h)
  304.       system  (process.h)
  305.  Searching and Sorting
  306.       bsearch (stdlib.h)        lfind (stdlib.h)       lsearch (stdlib.h)
  307.       qsort   (stdlib.h)
  308.  String Manipulation
  309.       stpcpy  (string.h)        strcat   (string.h)    strchr   (string.h)
  310.       strcmp  (string.h)        strcmpi  (string.h)    strcpy   (string.h)
  311.       strcspn (string.h)        strdup   (string.h)    strerror (string.h)
  312.       stricmp (string.h)        strlen   (string.h)    strlwr   (string.h)
  313.       strncat (string.h)        strncmp  (string.h)    strncmpi (string.h)
  314.       strncpy (string.h)        strnicmp (string.h)    strnset  (string.h)
  315.       strpbrk (string.h)        strrchr  (string.h)    strrev   (string.h)
  316.       strset  (string.h)        strspn   (string.h)    strstr   (string.h)
  317.       strtok  (string.h)        strupr   (string.h)
  318.  BIOS System Calls
  319.       bioscom  (bios.h)         biosdisk   (bios.h)    biosequip (bios.h)
  320.       bioskey  (bios.h)         biosmemory (bios.h)    biosprint (bios.h)
  321.       biostime (bios.h)
  322.  DOS System Calls
  323.       disable (dos.h)           dosexterr  (dos.h)     enable    (dos.h)
  324.       FP_OFF  (dos.h)           FP_SEG     (dos.h)     freemem   (dos.h)
  325.       geninterrupt (dos.h)      getcbrk    (dos.h)     getdfree  (dos.h)
  326.       getdta  (dos.h)           getfat     (dos.h)     getfatd   (dos.h)
  327.       getpsp  (dos.h)           getvect    (dos.h)     getverify (dos.h)
  328.       harderr (dos.h)           hardresume (dos.h)     hardretn  (dos.h)
  329.       inport  (dos.h)           inportb    (dos.h)     int86     (dos.h)
  330.       int86x  (dos.h)           intdos     (dos.h)     intdosx   (dos.h)
  331.       intr    (dos.h)           keep       (dos.h)     MK_FT     (dos.h)
  332.       outport (dos.h)           outportb   (dos.h)     parsfnm   (dos.h)
  333.       peek    (dos.h)           peekb      (dos.h)     poke      (dos.h)
  334.       pokeb   (dos.h)           randbrd    (dos.h)     randbwr   (dos.h)
  335.       segread (dos.h)           setcbrk    (dos.h)     setdta    (dos.h)
  336.       setvect (dos.h)           setverify  (dos.h)     sleep     (dos.h)
  337.       unlink  (dos.h)
  338.  Time & Date
  339.       asctime   (time.h)        ctime   (time.h)       difftime  (time.h)
  340.       dostounix (dos.h)         ftime   (sys\timeb.h)  getdate   (dos.h)
  341.       gettime   (dos.h)         gmtime  (time.h)       localtime (time.h)
  342.       setdate   (dos.h)         settime (dos.h)        stime     (time.h)
  343.       time      (time.h)        tzset   (time.h)       unittodos (dos.h)
  344.  Variable_length Argument Lists
  345.       va_arg (stdarg.h)         va_end (stdarg.h)      va_start (stdarg.h)
  346.  Miscellaneous
  347.       abs      (stdlib.h)       delay   (dos.h)        getenv (stdlib.h)
  348.       longjump (setjmp.h)       nosound (dos.h)        putenv (stdlib.h)
  349.       rand     (stdlib.h)       setjmp  (setjmp.h)     sound  (dos.h)
  350.       srand    (stdlib.h)       swab    (stdlib.h)
  351. . 5.4  List of Functions by Name order
  352. void abort(void)
  353. int abs(int x)
  354. int absread(int drive,int nsects,int lsect,void *buffer)
  355. int abswrite(int drive,int nsects,int lsect,void *buffer)
  356. int access(const char *filename,int amode)
  357. double acos(double x)
  358. int allocmem(unsigned size,unsigned *segp)
  359. void far arc(int x,int y,int stangle,int endangle,int radius)
  360. char *asctime(const struct tm *tblock)
  361. double asin(double x)
  362. void assert(int test)
  363. double atan(double x)
  364. double atan2(double x,double y)
  365. int atexit(atexit_t funct)
  366. double atof/atoi/atol(const char *s)
  367. void far bar(int left,int top,int right,int bottom)
  368. void far bar3d(int left,int top,int right,int bottom,int depth,int topflag)
  369. int bdos(int dosfn,unsigned int dosdx,unsigned int dosal)
  370. int bdosptr(int dosfn,void *argument,unsigned int dosal)
  371. int bioscom(int cmd,char abyte,int port)
  372. int biosdisk(int cmd,int drive,int head,int track,int sector,int nsects,
  373.              void *buffer)
  374. int biosequip(void)
  375. int bioskey(int cmd)
  376. int biosmemory(void)
  377. int biosprint(int cmd,int abyte,int port)
  378. int biostime(int cmd,long newtime)
  379. int brk(void *addr)
  380. double bessel(double x)
  381. void *bsearch(const void *key,const void *base,size_t nelem,size_t width,
  382.               int (*fcmp)(const void *,const void *))
  383. double cabs(struct complex z)
  384. void *calloc(size_t nitems,size_t size)
  385. double ceil(double x)
  386. char *cgets(char *str)
  387. int chdir(const char *path)
  388. int _chmod(const char *path,int funct [,int attrib])
  389. int chmod(const char *path,int amode)
  390. int chsize(int handle,long size)
  391. void far circle(int x,int y,int radius)
  392. unsigned int _clear87(void)
  393. void far cleardevice(void)
  394. void clearerr(file *stream)
  395. void far clearviewport(void)
  396. clock_t clock(void)
  397. int _close(int handle)
  398. int close(int handle)
  399. void far closegraph(void)
  400. void clreol(void)
  401. void clrscr(void)
  402. unsigned int _control87(unsigned int new,unsigned int mask)
  403. unsigned coreleft(void)
  404. unsigned long coreleft(void)
  405. double cos/cosh(double x)
  406. struct country *country(int xcode,struct country *cp)
  407. int cprintf(const char *format[,argument,...)
  408. int cputs(const char *string)
  409. int _creat(const char *path,int attrib)
  410. int creat(char *path,int amode)
  411. int creatnew(char *path,int attrib)
  412. int creattemp(char *path,int attrib)
  413. int cscanf(char *format[,address,...)
  414. char *ctime(const time_t *time)
  415. void ctrlbrk(int (*handler)(void))
  416. void delay(unsigned milliseconds)
  417. void delline(void)
  418. void detectgraph(int far *graphdriver,int far *graphmode)
  419. double difftime(time_t time2,time_t time1)
  420. void _disable(void)
  421. div_t div(int numer,int denom)
  422. int dosexterr(struct DOSERROR *eblkp)
  423. long dostounix(struct date *d,struct time *t)
  424. void far drawpoly(int numpoints,int far *polypoints)
  425. int dup(int handle)/dup2(int oldhandle,int newhandle)
  426. char *ecvt(double value,int ndig,int *dec,int *sign)
  427. void far ellipse(int x,int y,int stangle,int endangle,int xradius,int yradius)
  428. void __emit__(argument,...)
  429. void enable(void)
  430. int eof(int handle)
  431. int execl(char *path,char *arg0,*arg1,...,*argn,NULL)
  432. int execle(char *path,char *arg0,*arg1,...,*argn,NULL,char **env)
  433. int execlp(char *path,char *arg0,*arg1,...,*argn,NULL)
  434. int execlpe(char *path,char *arg0,*arg1,...,*argn,NULL,char **env)
  435. int execv(char *path,char *argv[])
  436. int execve(char *path,char *argv[],char **env)
  437. int execvp(char *path,char *argv[])
  438. int execvpe(char *path,char *argv[],char **env)
  439. void _exit/exit(int status)
  440. double exp(double x)
  441. double fabs(double x)
  442. void far *farcalloc(unsigned long nunits,unsigned long unitsz)
  443. unsigned long farcoreleft(void)
  444. void farfree(void far *block)
  445. void far *farmalloc(unsigned long nbytes)
  446. void far *farrealloc(void far *oldblock,unsigned long nbytes)
  447. int fclose(FILE *stream)/fcloseall(void)
  448. char *fcvt(double value,int ndig,int *dec,int *sign)
  449. file *fdopen(int handle,char *type)
  450. int feof(FILE *stream)
  451. int ferror(FILE *stream)
  452. int ffush(FILE *stream)
  453. int fgetc(FILE *stream)/fgetchar(void)
  454. int fgetpos(FILE *stream,fpos_t *pos)
  455. char *fgets(char *string,int n,FILE *stream)
  456. long filelength(int handle)
  457. int fileno(FILE *stream)
  458. void far fillellipse(int x,int y,int xradius,int yradius)
  459. void far fillpoly(int numpoints,int far *polypoints)
  460. int findfirst(const char *pathname,struct ffblk *ffblk,int attrib)
  461. int findnext(struct ffblk *ffblk)
  462. void far floodfill(int x,int y,int border)
  463. double floor(double x)
  464. int flushall(void)
  465. double fmod(double x,double y)
  466. void fnmerge(char *path,const char *drive,const char *dir,const char *name,
  467.              const char *ext)
  468. int fnsplit(const char *path,char *drive,char *dir,char *name,char *ext)
  469. FILE *fopen(const char *path,const char *mode)
  470. unsigned FP_OFF(farpointer)
  471. void _fpreset(void)
  472. int fprintf(FILE *stream,const char *format[,argument,...)
  473. unsigned FP_SEG(farpointer)
  474. int fputc(int c,FILE *stream)
  475. int fputchar(int c)
  476. int fputs(const char *string,FILE *stream)
  477. size_t fread(void *ptr,size_t size,size_t n,FILE *stream)
  478. void free(void *block)
  479. int freemem(unsigned segx)
  480. FILE *freopen(const char *filename,const char *mode,FILE *stream)
  481. double frexp(double x,int *exponent)
  482. int fscanf(FILE *stream,const char *format[,address,...])
  483. int fseek(FILE *stream,long int offset,int whence)
  484. int fsetpos(FILE *stream,const fpos_t *pos)
  485. int fstat(int handle,struct stat *statbuf)
  486. long int ftell(FILE *stream)
  487. void ftime(struct timeb *buf)
  488. size_t fwrite(const void *ptr,size_t size,size_t n,FILE *stream)
  489. char *gcvt(double value,int nddec,char *buf)
  490. void geninterrupt(int intr_num)
  491. void far getarccoords(struct arccoordstype far *arccoords)
  492. void far getaspectratio(int far *xasp,int far *yasp)
  493. int far getbkcolor(void)
  494. int getc(FILE *stream)
  495. int getcbrk(void)
  496. int getch(void)
  497. int getchar(void)
  498. int getche(void)
  499. int far getcolor(void)
  500. int getcurdir(int drive,char *directory)
  501. char *getcwd(char *buf,int buflen)
  502. void getdate(struct date *datep)
  503. void far *far getdefaultpalette(void)
  504. void getdfree(unsigned char drive,struct dfree *dtable)
  505. int getdisk(void)
  506. char *far getdrivername(void)
  507. char far *getdta(void)
  508. char *getenv(const char *name)
  509. void getfat(unsigned char drive,struct fatinfo *dtable)
  510. void getfatd(struct fatinfo *dtable)
  511. void far getfillpattern(char far *pattern)
  512. void far getfillsettings(struct fillsettingstype far *fillinfo)
  513. int getftime(int handle,struct ftime *ftimep)
  514. int far getgraphmode(void)
  515. void far getimage(int left,int top,int right,int bottom,void far *bitmap)
  516. void far getlinesettings(struct linesettingstype far *lineinfo)
  517. int far getmaxcolor(void)
  518. int far getmaxmode(void)
  519. int far getmaxx(void)
  520. int far getmaxy(void)
  521. char *far getmodename(int mode_number)
  522. void far getmoderange(int graphdriver,int far *lomode,int far *himode)
  523. void far getpalette(struct palettetype far *palette)
  524. int far getpalettesize(void)
  525. char *getpass(const char *prompt)
  526. unsigned far getpixel(int x,int y)
  527. unsigned getpsp(void)
  528. char *gets(char *string)
  529. int gettext(int left,int top,int right,int bottom,void *destin)
  530. void gettextinfo(struct text_info *r)
  531. void far gettextsettings(struct textsettingstype far *texttypeinfo)
  532. void gettime(struct time *timep)
  533. void interrupt(*getvect(int interruptno))()
  534. int getverify(void)
  535. void far getviewsettings(struct viewporttype far *viewport)
  536. int getw(FILE *stream)
  537. int far getx/gety(void)
  538. struct tm *gmtime(const time_t *timer)
  539. void gotoxy(int x,int y)
  540. void far graphdefaults(void)
  541. char * far grapherrormsg(int errorcode)
  542. void far _graphfreemem(void far *ptr,unsigned size)
  543. void far *far _graphgetmem(unsigned size)
  544. int far graphresult(void)
  545. void harderr(int (*handler())
  546. void hardresume(int axret)
  547. void hardretn(int retn)
  548. void highvideo(void)
  549. double hypot(double x,double y)
  550. unsigned far imagesize(int left,int top,int right,int bottom)
  551. void far initgraph(int far *graphdriver,int far *graphmode,
  552.                    char far *pathtodriver)
  553. int inport(int portid)
  554. unsigned char inportb(int portid)
  555. void insline(void)
  556. int far installuserdriver(char far *name,int huge (*detect)(void))
  557. int far installuserfont(char far *name)
  558. int int86(int intno,union REGS *inregs,union REGS *outregs)
  559. int int86x(int intno,union REGS *inregs,union REGS *outregs,struct SREGS *seg)
  560. int intdos(union REGS *inregs,union REGS *outregs)
  561. int intdosx(union REGS *inregs,union REGS *outregs,struct SREGS *segregs)
  562. void intr(int intno,struct REGPACK *preg)
  563. int ioctl(int handl,int funct [,void *argdx,int argcxl])
  564. int isalnum(int c)/isalpha(int c)/isascii(int c)
  565. int isatty(int handle)
  566. int iscntrl/isdigit/isgraph/islower/isprint/ispunct/isspace/isupper/
  567.     isxdigit(int c)
  568. char *itoa(int value,char *string,int radix)
  569. int kbhit(void)
  570. void keep(unsigned char status,unsigned size)
  571. long int labs(long int n)
  572. double ldexp(double x,int exp)
  573. ldiv_t ldiv(long int numer,long int denom)
  574. void *lfind(const void *key,const void *base,size_t *num,size_t width,
  575.             int (*fcmp)(const void *,const void *))
  576. void far line(int x1.int y1, int x2, int y2)
  577. void far linerel(int dx,int dy)
  578. void far lineto(int x,int y)
  579. struct tm *localtime(const time_t *timer)
  580. int lock(int handle,long offset,long length)
  581. double log(double x)/log10(double x)
  582. void longjmp(jmp_buf jmpb,int retval)
  583. void lowvideo(void)
  584. unsigned long _lrotl/_lrotr(unsigned long value,int count)
  585. void *lsearch(const void *key,void *base,size_t *num,size_t width,int (*fcmp)
  586.              (const void *,const void *))
  587. long lseek(int handle,long offset,int fromwhere)
  588. char *ltoa(long value,char *string,int radix)
  589. void *malloc(size_t size)
  590. double _matherr(_mexcep why,char *fun,double *arg1p,double *arg2p,double retval)
  591. int matherr(struc exception *e)
  592. (type) max(a,b)
  593. void *memccpy(const void *dest,const void *src,int c,size_t n)
  594. void *memchr(const void *s,int c,size_t n)
  595. int memcmp(const void *s1,const void *s2,size_t n)
  596. void *memcpy(const void *dest,const void *src,size_t n)
  597. int memicmp(const void *s1,const void *s2,size_t n)
  598. void *memmove(void *dest,const void *src,size_t n)
  599. void *memset(void *dest,int c,size_t n)
  600. (type) min(a,b)
  601. int mkdir(const char *path)
  602. void far *MK_FP(unsigned seg,unsigned ofs)
  603. char *mktemp(char *template)
  604. double modf(double x,double *ipart)
  605. void movedata(unsigned srcseg,unsigned srcoff,unsigned destoff,size_t n)
  606. void far moverel(int dx,int dy)
  607. int movetext(int left,int top,int right,int bottom,int destleft,int desttop)
  608. void far moveto(int x,int y)
  609. void movemem(void *src,void *dest,unsigned length)
  610. void normvideo(void)
  611. void nosound(void)
  612. int _open(const char *filename,int oflags)
  613. int open(const char *path,int access[,unsigned mode])
  614. void outport(int portid,int value)
  615. void outportb(int portid,unsigned char value)
  616. void far outtext(char far *textstring)
  617. void far outtextxy(int x,int y,char far *textstring)
  618. char *parsfnm(const char *cmdline,struct fcb *fcb,int opt)
  619. int peek(unsigned segment,unsigned offset)
  620. char peekb(unsigned segment,unsigned offset)
  621. void perror(const char *string)
  622. void far pieslice(int x,int y,int stangle,int endangle,int radius)
  623. void poke(unsigned segment,unsigned offset,int value)
  624. void pokeb(unsigned segment,unsigned offset,int value)
  625. double poly(double x,int degree,double coeffs[])
  626. double pow(double x,double y)
  627. double pow10(int p)
  628. int printf(const char *format[,argument,...])
  629. int putc(int c,FILE *stream)
  630. int putchar(int c)
  631. int putch(int c)
  632. int putenv(const char *name)
  633. void far putimage(int left,int top,void far *bitmap,int op)
  634. void far putpixelint x,int y,int color)
  635. int puts(const char *string)
  636. int puttext(int left,int top,iny right,int bottom,void *source)
  637. int putw(int w,FILE *stream)
  638. void qsort(void *base,size_t nelem,size_t width,int (*fcmp)
  639.           (const void *,const void *))
  640. int raise(int sig)
  641. int rand(void)
  642. int randbrd(struct fcb *fcb,int rcnt)
  643. int randbwr(struct fcb *fcb,int rcnt)
  644. int random(int num)
  645. void randomize(void)
  646. int _read/read(int handle,char *buffer,unsigned len)
  647. void *realloc(void *buffer,size_t size)
  648. void far rectangle(int left,int top,int right,int bottom)
  649. int registerbgidriver(void (*driver)(void))
  650. int registerbgifont(void (*font)(void))
  651. int remove(const char *filename)
  652. int rename(const char *oldname,const char *newname)
  653. void far restorecrtmode(void)
  654. void rewind(FILE *stream)
  655. int rmdir(char *path)
  656. unsigned _rotl/_rotr(unsigned value,int count)
  657. void *sbrk(int incr)
  658. int scanf(const char *format[,address,...])
  659. char *searchpath(const char *file)
  660. void far sector(int x,int y,int stangle,int endangle,int xradius,int yradius)
  661. void segread(struct SREGS *segp)
  662. void far setactivepage(int page)
  663. void far setallpalette(struct palettetype far *palette)
  664. void far setaspectratio(int xasp,int yasp)
  665. void far setbkcolor(int color)
  666. int setblock(unsigned segx,unsigned newsize)
  667. int setcbrk(int cbrkvalue)
  668. void far setcolor(int color)
  669. void setdate(struct date *datep)
  670. int setdisk(int disk)
  671. void setdta(char far *dta)
  672. void far setfillpattern(char far *upattern,int color)
  673. void far setfillstyle(int pattern,int color)
  674. int setftime(int handle,struct ftime *ftimep)
  675. unsigned far setgraphbufsize(unsigned bufsize)
  676. void far getgraphmode(int mode)
  677. int setjmp(jmp_buf jmpb)
  678. void far setlinestyle(int linestyle,unsigned upattern,int thickness)
  679. void setmem(void *dest,unsigned length,char value)
  680. int setmode(int handle,int amode)
  681. void far setpalette(int colornum,int color)
  682. void far setrgbpalette(int colornum,int red,int green,int blue)
  683. void far settextjustify(int horiz,int vert)
  684. void far settextstyle(int font,int direction,int charsize)
  685. void settime(struct time *timep)
  686. void far setusercharsize(int multx,int divx,int multy,int divy)
  687. int setvbuf(FILE *stream,char *buffer,int type,size_t size)
  688. void setvect(int interruptno,void interrupt(*isr)())
  689. void setverify(int value)
  690. void far setviewport(int left,int top,int right,int bottom,int clip)
  691. void far setvisualpage(int page)
  692. void far setwritemode(int mode)
  693. void (*signal(int sig,void (*func),(int sig[,int subcode])))(int)
  694. double sin(/sinh(double x)
  695. void sleep(unsigned seconds)
  696. int sopen(char *path,int access,int shflag,int mode)
  697. void sound(unsigned frequency)
  698. int spawnl(int mode,char *path,char *arg0,...,*argn,NULL)
  699. int spawnle(int mode,char *path,char *arg0,...,*argn,NULL,char *envp[])
  700. int spawnlp(int mode,char *path,char *arg0,...,*argn,NULL)
  701. int spawnlpe(int mode,char *path,char *arg0,...,*argn,NULL,char *envp[])
  702. int spawnv(int mode,char *path,char *argv[])
  703. int spawnve(int mode,char *path,char *envp[])
  704. int spawnvp(int mode,char *path)
  705. int spawnvpe(int mode,char *path,char *envp[])
  706. int sprintf(char *buffer,const char *format[,argument,...])
  707. double sqrt(double x)
  708. void srand(unsigned seed)
  709. int sscanf(char *buffer,const char *format[,address,...])
  710. int stat(char *path,struct stat *statbuf)
  711. unsigned int _status87(void)
  712. int stime(time_t *tp)
  713. char *strcat(char *dest,const char *src)
  714. char *strchr(const char *string,int c)
  715. int strcmp(const char *string1,const char *string2)
  716. int strcmpi(const char *string1,const char *string2)
  717. char *strcpy(char *dest,const char *src)
  718. size_t strcspn(const char *string1,const char *string2)
  719. char *strdup(const char *string)
  720. int stricmp(const char *string1,const char *string2)
  721. char *strerror(int errnum)/_strerror(char *string)
  722. size_t strlen(char *string)
  723. char *strlwr(char *string)
  724. char *strncat(char *dest,const char *src,size_t maxlen)
  725. int strncmp(const char *string1,const char *string2 size_t maxlen)
  726. int strnicmp(const char *string1,const char *string2,size_t maxlen)
  727. char *strncpy(char *dest,const char *src,size_t maxlen)
  728. char *strnset(char *string,int ch,size_t n)
  729. char *strpbrk(const char *string1,const char *string2)
  730. char *strrchr(const char *string,int c)
  731. char *strrev(char *string)
  732. char *strset(char *string,int ch)
  733. size_t strspn(const char *string1,const char *string2)
  734. char *strstr(const char *string1,const char *string2)
  735. double strtod(const char *nptr,char **endptr)
  736. char *strtok(char *string1,const char *string2)
  737. long strtol(const char *s,char **endptr,int radix)
  738. unsigned long strtoul(const char *s,char **endptr,int radix)
  739. char *strupr(char *string)
  740. void swab(char *src,char *dest,int nbytes)
  741. int system(const char *command)
  742. double tan/tanh(double x)
  743. long tell(int handle)
  744. void textattr(int newattr)
  745. void textbackground(int newcolor)
  746. void textcolor(int newcolor)
  747. int far textheight(char far *textstring)
  748. void textmode(int newcolor)
  749. int far textwidth(char far *textstring)
  750. time_t time(time_t *timer)
  751. FILE *tmpfile(void)
  752. char *tmpnam(char *s)
  753. int toascii/tolower/_tolower/toupper/_toupper(int c)
  754. void tzset(void)
  755. char *ultoa(unsigned long value,char *string,int radix)
  756. int ungetc(int c,FILE *stream)
  757. int ungetch(int c)
  758. void unixtodos(long time,struct,date *d,struct time *t)
  759. int unlink(const char *filename)
  760. int unlock(int handle,long offset,long length)
  761. void va_start(va_list param,lastfix)
  762. type va_arg(va_list param,type)
  763. void va_end(va_list param)
  764. int vfprintf(FILE *stream,const char *format,va_list arglist)
  765. int vfscanf(FILE *stream,const char *format,va_list arglist)
  766. int vprintf(const char *format,va_list argptr)
  767. int vscanf(const char *format,va_list argptr)
  768. int vsprintf(char *buffer,const char *format,va_list argptr)
  769. int vsscanf(const char *buffer,const char *format,va_list argptr)
  770. int wherex/wherey(void)
  771. void window(int left,int top,int right,int bottom)
  772. int _write/write(int handle,void *buffer,unsigned len)
  773. . 6.1  Main line program structure
  774. #include <???.h>
  775. main()
  776. {
  777. }
  778. . 6.2  Function Prototype Declaration
  779.     <type>  function_name (type arg1,type arg2,...);
  780. . 6.3  Function Definitions and Structure
  781.     <return type>  function_name (arg1,arg2,...)
  782.     type arg1;
  783.     type arg2;
  784.     ...
  785.     {
  786.          local declarations;
  787.          statements;
  788.          return statement;
  789.     }     
  790. . 7.1  Sample of Main Program 
  791. /* sample 1 */
  792. #include <stdio.h>
  793. main()
  794. {
  795.     printf("Welcome to Turbo C programming with kEDITOR");
  796. }
  797. . 7.2  Sample of Main Program Calling a Function
  798. /* sample 2 */
  799. #include <stdio.h>
  800. main()
  801. {
  802.     int i;
  803.     for (i = 0; i < 10; ++i)  
  804.          printf("%d %d %d\n", i,power(2,i), power(-3,i));
  805. }
  806. power(x,n)
  807.     int x,n;
  808.     int i,p;
  809.     for (i = 1; i <= n; ++i)
  810.          p = p * x;
  811.     return(p);
  812. }
  813. . 7.3  Sample of DO statement
  814. /* sample 3 */
  815. do {
  816.      i--;
  817. } while (i > 0);
  818. . 7.4  Sample of FOR statement
  819. /* sample 4 */
  820.  for (i = 0; sum = 0; i < 100; i++)
  821.    sum += a[i];
  822. . 7.5  Sample of GOTO statement
  823. /* sample 5 */
  824. if (result > 0)
  825.    goto quit;
  826.    ...
  827.    quit:
  828.    return(result);
  829. . 7.6  Sample of IF statement
  830. /* sample 6 */
  831. #include <stdio.h>
  832. FILE *in_file;
  833. main()
  834. {
  835.     if ((in_file = fopen("data","r")) == NULL)
  836.         printf("Open file failed");
  837.     else
  838.         printf("File Opened");
  839. }
  840. . 7.7  Sample of SWITCH statement
  841. /* sample 7 */
  842. response = toupper(response);
  843. switch (reponse) {
  844.     case 'Y':
  845.          printf("The reponse is Yes");
  846.          break;
  847.     case 'N':
  848.          printf("The reponse is No");
  849.          break;
  850.     default :
  851.          printf("The reponse is uncertain");
  852. }
  853. . 7.8  Sample of WHILE statement
  854. /* sample 8 */
  855. while (( achar = getchar()) != EOF)  {
  856.    if achar == ' ')
  857.        continue;
  858.    putchar(achar);
  859.    count++;
  860. }
  861. . 7.9  Sample of Command-line Processing
  862. /* sample 9 */
  863. #include <stdio.h>
  864. main(argc,argv)
  865. int argc;
  866. char *argv[];
  867. {
  868.    int i;
  869.    printf("Number of arguments : %d\n",argc);
  870.    for (i = 1; i <argc; i++)
  871.        printf("%s\n",argv[i]);
  872. }
  873. . 7.10 Sample of Array Using
  874. /* sample 10 */
  875. #include <stdio.h>
  876. main()
  877. {
  878.  int array1[26];
  879.  int i;
  880.  
  881.  for (i = 0; i < 26; ++i)
  882.   {
  883.     array1[i] = i + 'a';
  884.     putchar(array1[i]);
  885.   }
  886.  putchar('\n');
  887. }
  888. . 7.11 Sample of File I/O
  889. /* sample 11 */
  890. #include <stdio.h>
  891. main()
  892. {
  893.    FILE *fopen(), *in_file, *out_file;
  894.    char achar;
  895.    in_file  = fopen("IN.DAT", "r");
  896.    out_file = fopen("OUT.DAT","w");
  897.    if (in_file == NULL)
  898.        printf ("Input file not found%s\n",in_file);
  899.    while ((achar = getc (in_file)) != EOF) {
  900.        fputc(achar,out_file);
  901.      }
  902.    fclose (in_file);
  903.    fclose (out_file);
  904. }
  905. . 7.12 Sample of Text File Input
  906. /* sample 12 */
  907. #include <stdio.h>
  908. main()
  909. {
  910.    FILE *in_file, *fopen();
  911.    char line[80];
  912.    in_file = fopen("INFILE.TXT","r");
  913.    while (fgets(line,80,in_file) != NULL)
  914.        puts(line);
  915.    fclose (in_file);
  916. }
  917. . 7.13 Sample of Text File Output
  918. /* sample 13 */
  919. #include <stdio.h>
  920. main()
  921. {
  922.    FILE *out_file, *fopen();
  923.    int i;
  924.    char name[80];
  925.    out_file = fopen("NAMELIST.TXT","w");
  926.    do {
  927.        printf("Enter name :");
  928.        gets(name);
  929.        if ((i = strlen(name)) > 0)
  930.           fputs(name,out_file);
  931.    } while (i > 0);
  932.    fclose (out_file);
  933. }
  934. . 7.14 Sample of Memory Storage Allocation
  935. /* sample 14 */
  936. #include <stdio.h>
  937. struct block { 
  938.    int  lineNo;
  939.    char Line[80];
  940. };
  941. main()
  942. {
  943.    char *malloc();
  944.    struct block *p;
  945.    p = (struct block *) malloc (sizeof(struct block));
  946.    if (p == (struct block *) NULL)
  947.        printf("Out of Memory\n");
  948.    else
  949.        printf("Memory allocated OK\n");
  950. }
  951. . 8.   Escape Sequences
  952.     \0        Null terminator (for string)   0X0      ^@
  953.     \a        bell(alert)
  954.     \b        backspace                     0X5C      \
  955.     \f        form feed                     0X0C      ^L
  956.     \n        new line                      0X0A      ^J
  957.     \r        carriage return               0X0D      ^M
  958.     \t        horizontal tab (six spaces)    0X9
  959.     \v        vertical tab
  960.     \'        single quoatation mark        0X27
  961.     \"        double quotation mark         0X22
  962.     \\        backslash
  963.     \ddd      octal value
  964.     \xdd      Hex value
  965. . 9.   Format Specifications
  966.     %u        unsigned integer
  967.     %ld       long integer
  968.     %p        pointer value
  969.     %f        floating-point
  970.     %e        floating-point in exponential notation 
  971.     %c        Character
  972.     %s        String
  973.     %x  %X    Hexadecimal integer
  974. .10.   Preprocessor Directives
  975.     #define <identifier> <text>
  976.     #error <identifier>
  977.     #include <path name>
  978.     #if <exp> [text] [#elif <exp> text] [#elif <exp> text]...[#else text] #endif
  979.     #ifdef <identifier>
  980.     #ifndef <identifier>
  981.     #line <constant> ["filename"]
  982.     #undef <identifier>
  983.     #pragma <identifier>
  984. .11.1  Compiler Options in Function Group
  985.    Memory model option (-mc -mh -ml -mm -ms -mt)
  986.    #define(Macro Definition) (-Dname -Dname=str -Uname)
  987.    Code generation option (-1 -a -d -f87 -f -f- -K -k -N -p -u -y -v)
  988.    Optimization option (-G -O -r- -r -Z)
  989.    Source code option (-A -C -i#)
  990.    Error_reporting options (-g# -j# -wstr)
  991.    Segment-nameing control option (-zXname where X is A/B/C/D/G/P/R/S/T)
  992.    Compilation control options (-B -c -ofilename -S -Efilename)
  993.    Linker options (-efilename -M -lx)
  994.    Environment options (-Ipath -Lpath -npath)
  995. .11.2  Compiler Options in Alphbetic Order
  996. >TCC <option1> <option2> ... <options> filename filename ...
  997.    -1      Generate code for the 186/286 instruction set
  998.    -1-     Generate code for the 8088/8086 instruction set (default)
  999.    -A      ANSI keywords only
  1000.    -a      Align integer size variables and structure fields on a word boundary
  1001.    -a-     Align integer size variables and structure fields on byte boundary
  1002.    -B      Process inline assembly code
  1003.    -C      Allow nested comments
  1004.    -c      Compile only
  1005.    -Dname  Define name to be 1 to the preprocessor
  1006.    -Dname=str  Define name to be str to be preprocessor
  1007.    -d      Merge duplicate constant strings
  1008.    -Efilename Name of assembler to use (default TASM)
  1009.    -efilename Name of executable file
  1010.    -f      Floating point emulation(default)
  1011.    -f-     Do not use floating-point libraries at link time
  1012.    -f87    8087 floating-point operations
  1013.    -G      Optimize for speed rather than size
  1014.    -g#     Compiling stop after # errors and warnings
  1015.    -Ipath  Include directories
  1016.    -i#     Set identifier size to # significant characters(default 32)
  1017.    -j#     Compiling stop after # errors
  1018.    -K      Default char type to unsigned
  1019.    -K-     Default char type to signed
  1020.    -Lpath  Library directory
  1021.    -M      Produce a link map file
  1022.    -mc     Model compact
  1023.    -mh     Model huge
  1024.    -ml     Model large
  1025.    -mm     Model medium
  1026.    -ms     Model small
  1027.    -mt     Model tiny
  1028.    -N      Generate code for stack probe upon entry to functions(default)
  1029.    -npath  Output directory
  1030.    -O      Optimization on jump 
  1031.    -ofilename OBJ filename
  1032.    -p      Pascal calling convention
  1033.    -p-     C calling convention
  1034.    -r      Use register variables(default)
  1035.    -r-     Disable register variables
  1036.    -S      Produce assembly source listing in .ASM
  1037.    -Uname  Undefine preprocessor symbol name
  1038.    -u      Generate underscore on the front of identifiers(default)
  1039.    -v      Generate debug information in OBJ file
  1040.    -w      Display warning(default)
  1041.    -w-     Do not display warning
  1042.    -wstr   Enable warning message associated with str
  1043.    -w-str  Suppress warning message associated with str
  1044.    -y      Generate line number for debugging
  1045.    -Z      Optimization on register loading
  1046.    -zAname Change name of code segment class to name(default CODE)
  1047.    -zBname Change name of uninitialzed data segment class to name(default BSS)
  1048.    -zCname Change name of code segment to name(default -TEXT)
  1049.    -zDname Change name of uninitialzed data segment to name(default _BSS)
  1050.    -zGname Change uninitialzed data segment group to name(default DGROUP)
  1051.    -zPname Cause output file to be generated with a code group name
  1052.    -zRname Change name of initialzed data segment to name(default _DATA)
  1053.    -zSname Change initialzed data segment group to name(default DGROUP)
  1054.    -zTname Change initialzed data segment class to name(default DATA)
  1055.    -zX*    Use the default name to X
  1056. .12.   Display Mode for IBM PC and Compatiables
  1057.      Type         Adapter Type       Monitor Type          Size      Colors
  1058.  --------------   ------------   --------------------    ---------   ------
  1059.  Mono text          CGA,EGA      Color,Extended Color     40 x 25     16 shades
  1060.  Color text         CGA,EGA      Color,Extended Color     40 x 25     16 
  1061.  Mono  text         CGA,EGA      Color,Extended Color     80 x 25     16 shades
  1062.  Color text         CGA,EGA      Color,Extended Color     80 x 25     16 
  1063.  Color graphics     CGA,EGA      Color,Extended Color    320 x 200     4 
  1064.  Mono  graphics     CGA,EGA      Color,Extended Color    320 x 200     4 shades
  1065.  Mono  graphics     CGA,EGA      Color,Extended Color    640 x 200     2 B & W
  1066.  Mono  text         Mono         Mono                     80 x 25      2 B & W
  1067.  Hercules graphics  Hercules     Color,Extended Color    720 x 348     2 B & W
  1068.  Color graphics     EGA          Color,Extended Color    320 x 200    16 
  1069.  Color graphics     EGA          Color,Extended Color    640 x 200    16 
  1070.  Mono graphics      EGA          Extended Color          640 x 350     2 B & W
  1071.  Color graphics     EGA          Extended Color          640 x 350     4 / 16
  1072.  Mono graphics      VGA          VGA                     640 x 480     2 B & W
  1073.  Color graphics     VGA          VGA                     640 x 480    16 
  1074.  Color graphics     VGA          VGA                     320 x 200   256
  1075.